import request from '@/utils/request'

/**
 * 查询应用管理列表
 */
export function listApp(query) {
    return request({
        url: '/keep/app/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询应用管理详细
 */
export function getApp(appId) {
    return request({
        url: '/keep/app/' + appId,
        method: 'get'
    })
}

/**
 * 新增应用管理
 */
export function addApp(data) {
    return request({
        url: '/keep/app',
        method: 'post',
        data: data
    })
}

/**
 * 修改应用管理
 */
export function updateApp(data) {
    return request({
        url: '/keep/app',
        method: 'put',
        data: data
    })
}

/**
 * 删除应用管理
 */
export function delApp(appId) {
    return request({
        url: '/keep/app/' + appId,
        method: 'delete'
    })
}

/**
 * 导出应用管理
 */
export function exportApp(query) {
    return request({
        url: '/keep/app/export',
        method: 'get',
        params: query
    })
}